<?php

namespace app\api\model;

class ShopGoodsItem extends Common
{
    public function __construct(array $data = [])
    {
        parent::__construct($data);
        //  用户基本详情表
        $this->table = 'shop_goods_item';
    }
    /**
     * 获取子商品信息
     * @param $where
     * @param $field
     * @param $group
     * @param $order
     * @return array|\PDOStatement|string|\think\Model|null
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getOne($where = [], $field = "*", $group = "", $order = [])
    {
        return parent::getOne($where, $field, $group, $order); // TODO: Change the autogenerated stub
    }

    /**
     *子商品列表
     * @param $field
     * @param $order
     * @param $group
     * @return array|\PDOStatement|string|\think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getLists($where=[],$field = '*', $group = '', $order = [],$limit=[])
    {
        return parent::getAllData($where,$field, $group, $order,$limit); // TODO: Change the autogenerated stub
    }
    public function whereInList($searchWhere=[],$where = '', $condition = '', $field = '*', $order = [], $group = '',$limit=[])
    {
        return parent::whereInInfo($searchWhere,$where, $condition, $field, $order, $group,$limit); // TODO: Change the autogenerated stub
    }
}
